package com.redsun.smallworld.gl.glcontroller;

import com.redsun.smallworld.gl.controls.OButton;

import javax.media.opengl.GL2;

/**
 * Created by zhebinwang on 2017/6/2.
 */
public class ControlController {
    private OButton oButton=new OButton();
    private final static ControlController controlController =new ControlController();


    private ControlController(){

    }

    public  static ControlController  getInterface(){

        return controlController;
    }

    public int doRenderAll(GL2 gl2){
        //oButton.doRender(gl2);
        return 0;
    }

    public int initControl(){
        oButton.setControlName("ff");
        oButton.setHeight(50).setWidth(30).setX(0).setY(10)
                .setTexindex(1)
                .setTexheight(1.0f).setTexwidth(1.0f)
                .setTexu(0.0f).setTexv(0.0f);
        return 0;
    }

}
